﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VideoCache.Server.Model;

namespace VideoCache.Server.ViewModel
{
    public class SyncModel
    {
        public List<SyncAlbumInfo> AlbumList { get; set; }
        public List<DictionaryInfo> DictionaryList { get; set; }

        public SyncModel()
        {
            this.AlbumList = new List<SyncAlbumInfo>();
            this.DictionaryList = new List<DictionaryInfo>();
        }
    }

    public class SyncAlbumInfo
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public int TypeId { get; set; }
        public int AreaId { get; set; }
        public int Rating { get; set; }
        public int PubYear { get; set; }
        public int Priority { get; set; }
        public int Status { get; set; }
        public bool IsEnd { get; set; }
        public DateTime ModifyTime { get; set; }

        public List<SyncEpisodeInfo> Episodes { get; set; }

        public SyncAlbumInfo()
        {
            this.Episodes = new List<SyncEpisodeInfo>();
        }
    }

    public class SyncEpisodeInfo
    {
        public int AlbumId { get; set; }
        public int Episode { get; set; }
        public string Name { get; set; }
        public DateTime ModifyTime { get; set; }
    }
}